// todo: comment

var Interface = function(method1, method2 /* etc... */) {
	this.methods = arguments;
}

function ensureImplements(object, intf1, intf2 /* etc... */) {
	for(var i=1; i<arguments.length; i++) {
		var intf = arguments[i];
		
		for(var j=0; j<intf.methods.length; j++) {
		    var method = intf.methods[j];
		    if(!object[method] || typeof object[method] !== 'function') {
		        throw new Error("Function ensureImplements: Method " + method + " was not found.");
		    }
		}
	}
};
